//
//  TabViewController.m
//  IMZone人
//
//  Created by summer on 15/8/5.
//  Copyright (c) 2015年 summer. All rights reserved.
//

#import "TabViewController.h"
#import "RootViewController.h"
#import "RCDChatViewController.h"
#import "ChatListViewController.h"
@interface TabViewController ()

@end

@implementation TabViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    
    RootViewController * rootVC = [RootViewController new];
    UINavigationController * navc1 = [[UINavigationController alloc] initWithRootViewController:rootVC];
    rootVC.title = @"去聊天";
    
    ChatListViewController  * listVC = [ChatListViewController new];
    UINavigationController * navc2 = [[UINavigationController alloc] initWithRootViewController:listVC];
    
    self.viewControllers = @[ navc2, navc1];

    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
